<template>
    <div class="msgReminding">
        <div class="liuhai"></div>
        <div class="settings-header">
            <div>
                <i class="settings-icon" @click="goTo('/settings')">&#xe600;</i>
            </div>
            <div>消息提醒</div>
            <div></div>
        </div>
        <div class="msgRemindingContent">
            <div class="msgList">
                <div class="left">新消息通知</div>
                <van-switch v-model="checked1" active-color="#ec9b38" inactive-color="#c1c1c1"/>
            </div>
            <div class="msgList">
                <div class="left">推送私信消息</div>
                <van-switch v-model="checked2" active-color="#ec9b38" inactive-color="#c1c1c1"/>
            </div>
            <div class="msgList">
                <div class="left">推送评论消息</div>
                <van-switch v-model="checked3" active-color="#ec9b38" inactive-color="#c1c1c1"/>
            </div>
            <div class="msgList">
                <div class="left">与我相关的通知</div>
                <van-switch v-model="checked4" active-color="#ec9b38" inactive-color="#c1c1c1"/>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "index",
        data() {
            return {
                checked1: true,
                checked2: true,
                checked3: true,
                checked4: false,
            };
        },
        methods: {
            goTo(path) {
                this.$router.replace(path)
            },
        }
    }
</script>

<style>
    /********************************************字体图标************************************/
    .msgRemindingContent {
        margin-top: 20px;
    }

    .msgList {
        width: 100%;
        height: 96px;
        display: flex;
        justify-content: space-between;
        background: white;
        align-items: center;
        padding: 0 30px;
    }

    .msgList > .left {
        font-size: 28px;
    }

    .van-switch {
        width: 96px !important;
        height: 52px !important;
    }

    .van-switch__node {
        width: 52px !important;
        height: 52px !important;
        left: 9px !important;
    }
</style>
